<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<title></title>
<%
	String path = request.getContextPath();
	// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量 
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	// 将 "项目路径basePath" 放入pageContext中，待以后用EL表达式读出。 
	pageContext.setAttribute("basePath", basePath);
	//out.write(basePath);
%>

<!-- Bootstrap core CSS -->
<link href="<%=basePath%>bootstrap3/css/bootstrap.min.css"
	rel="stylesheet">
<link href="data:text/css;charset=utf-8,"
	data-href="<%=basePath%>bootstrap3/css/bootstrap-theme.min.css"
	rel="stylesheet" id="bs-theme-stylesheet">
<link href="<%=basePath%>bootstrap3/css/docs.min.css" rel="stylesheet">

<script src="<%=basePath%>bootstrap3/js/jquery.min.js"></script>

<script src="<%=basePath%>bootstrap3/js/bootstrap.min.js"></script>

<script src="<%=basePath%>bootstrap3/js/docs.min.js"></script>

<script src="<%=basePath%>bootstrap3/js/ie10-viewport-bug-workaround.js"></script>

<script type="text/javascript">
	$(function() {
		var addo = $("#helpFriendResult")[0].value;
		if (addo != null && addo != "") {
			alert(addo);
		}
	});

	function to20() {
		document.getElementById("payMoney").value = 20;
	}
	function to50() {
		document.getElementById("payMoney").value = 50;
	}
	function to100() {
		document.getElementById("payMoney").value = 100;
	}
	
	function checkMoney() {
		var remain = $("#payMoney")[0].value;
		if(remain<=0){
			alert("充值的金额不能小于等于零~~");
			return false;
		}else{
			return true;
		}
	}
	
</script>
<style type="text/css">
#head {
	height: 100px;
	width: 100%;
	background: buttontext;
	margin-left: auto;
	margin-right: auto;
}
</style>

</head>

<body>
	<input type="hidden" id="helpFriendResult" value="${sessionScope.helpFriendResult }">
	<div id="head">
		<div style="height: 10px;"></div>
		<div
			style="height: 100px; width: 60%; margin-left: auto; margin-right: auto;">
			<h1>
				<span class="glyphicon glyphicon-link"></span>&nbsp;&nbsp;&nbsp;&nbsp;立&nbsp;即&nbsp;充&nbsp;值
			</h1>
		</div>
	</div>
	<div style="height: 25px;"></div>
	<div
		style="width: 60%; height: 500px; margin-left: auto; margin-right: auto;">
		<form role="form" action="<%=basePath%>netuser/userHelpPersonPay.action">
			<div class="row">
				<label class="col-md-2 control-label"><font size="5">充值金额：</font></label>
				<div class="col-md-4">
					<input class="form-control" id="payMoney" name="payMoney" type="text"
						style="height: 40px;"
						placeholder="充&nbsp;值&nbsp;币&nbsp;种&nbsp;默&nbsp;认&nbsp;为&nbsp;人&nbsp;民&nbsp;币~">
				</div>
				<div class="col-md-6">
					<button type="submit" class="btn btn-success" onclick="return checkMoney();">充&nbsp;&nbsp;值</button>
				</div>
			</div>
			<div style="height: 40px;"></div>
			<div class="row">
				<div class="col-md-1"></div>
				<div class="col-md-1">
					<button type="button" class="btn btn-danger" onclick="to20();">2&nbsp;0</button>
				</div>
				<div class="col-md-1"></div>
				<div class="col-md-1">
					<button type="button" class="btn btn-info" onclick="to50();">5&nbsp;0</button>
				</div>
				<div class="col-md-1"></div>
				<div class="col-md-1">
					<button type="button" class="btn btn-warning" onclick="to100();">1&nbsp;0&nbsp;0</button>
				</div>
			</div>
		</form>
	</div>
</body>

</html>










